
package com.be.beadmin.project.repository;

import com.be.beadmin.project.entity.Change;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author ljh
* @date 2023-02-05
**/
public interface ChangeRepository extends JpaRepository<Change, String>, JpaSpecificationExecutor<Change> {

    Change findChangeByIdAndDelete(String id, Integer delete);

    Change findChangeById(String id);

    List<Change> findChangesByInfoIdAndChangeType(String infoId, String category);

    Integer countChangeByDelete(int delete);

}